$OpenBSD: patch-django_core_servers_basehttp_py,v 1.1 2015/07/27 20:01:02 rpointel Exp $
--- django/core/servers/basehttp.py.orig	Tue Jan 27 18:12:30 2015
+++ django/core/servers/basehttp.py	Sat Feb  7 10:00:00 2015
@@ -10,6 +10,7 @@ been reviewed for security issues. DON'T USE IT FOR PR
 from __future__ import unicode_literals
 
 from io import BytesIO
+import select
 import socket
 import sys
 import traceback
@@ -175,4 +176,12 @@ def run(addr, port, wsgi_handler, ipv6=False, threadin
         httpd_cls = WSGIServer
     httpd = httpd_cls(server_address, WSGIRequestHandler, ipv6=ipv6)
     httpd.set_app(wsgi_handler)
-    httpd.serve_forever()
+    
+    try:
+        httpd.serve_forever()
+    except select.error as (errno, msg):
+        # catch Interrupted system call exceptions
+        # (CTRL-C)
+        if errno != 4:
+            raise
+
